package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("hm_questions")
public class Question implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;//问题iD
    private String number; //试题编号

    @TableField("subjectID")
    private Integer subjectID; //学科id

    @TableField(exist = false)
    private String catalog;

    @TableField(exist = false)
    private String subject;

    @TableField("catalogID")
    private Integer catalogID; //目录id



    @TableField("enterpriseID")
    private Integer enterpriseID; //企业id

    private String province; //省份

    private String city; //城市

    private String direction; //方向

    @TableField("questionType")
    private String questionType; //题型

    private String difficulty; //难度

    private String question; //题干
    @TableField(exist = false)
    private List<Option> options;//选项

    @TableField("videoURL")
    private String videoURL; //解析视频

    private String answer; //答案解析

    private String remarks; //题目备注

    private String tags; //试题标签

    @TableField("isChoice")
    private Integer isChoice; //精选题

    @TableField("publishState")
    private Integer publishState; //发布状态

    @TableField("publishDate")
    private Date publishDate; //发布时间

    @TableField("chkState")
    private Integer chkState; //筛选状态

    @TableField("chkUserID")
    private Integer chkUserId; //审核人

    @TableField("chkRemarks")
    private String chkRemarks; //审核意见

    @TableField("chkDate")
    private Date chkDate; //审核日期

    @TableField("creatorID")
    private Integer creatorId;//创建人id

    @TableField(exist = false)
    private String creator;//创建人id

    @TableField("addDate")
    private Date addDate; //创建日期
}
